{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <form class="mb-20" method="get" action="{:\\think\\Url::build($Request.action)}">
        <input type="text" class="input-text" style="width:250px" placeholder="请输入id/姓名/手机号/账号" name="keyword" value="{$Request.param.keyword}">
        <button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    </form>
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            <th width="30">UID</th>
            <th width="60">头像</th>
            <th width="100">昵称</th>
            <th width="100">手机号码</th>
            <th width="80">性别</th>
            <th width="80">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            <td>{$vo.user_id|high_light=$Request.param.user_id}</td>
            <td><img src="{$vo.head}" style="height: 50px; width: 50px;" alt=""></strong></td>
            <td>{$vo.nickname|high_light=$Request.param.nickname}</td>
            <td>{$vo.phone|high_light=$Request.param.phone}</td>
            <td>{if condition="($vo.sex == 1)"} 男
                {elseif condition="$vo.sex == 2"/}女
                {else /} 未知
                {/if}</td>
            <td class="f-14">
                {tp:access action="detail"}
                <a href="javascript:;" class="label label-success radius" onclick="layer_open('详情','{:\\think\\Url::build(\'detail\', [\'id\'=>$vo[\'id\']])}')">详情</a>
                {/tp:access}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page}</div>
</div>
{/block}